using B.S.NewMedical.Api.Read.DTOS.Patient;
using B.S.NewMedical.ErrorCode;
using MediatR;
using System.Collections.Generic;

namespace B.S.NewMedical.Api.Read.Application.Command.ContentManagement.Patient
{
    /// <summary>
    /// 根据用户ID获取患者列表命令
    /// </summary>
    public class GetPatientsByAccountIdCommand : IRequest<ApiResult<List<PatientDisplayDto>>>
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int AccountId { get; set; }

        /// <summary>
        /// 是否包含已删除的患者，默认false
        /// </summary>
        public bool IncludeDeleted { get; set; } = false;

        public GetPatientsByAccountIdCommand(int accountId, bool includeDeleted = false)
        {
            AccountId = accountId;
            IncludeDeleted = includeDeleted;
        }
    }
}